package com.lwm.jiekou.jiekouImpl;

import com.lwm.entity.Employee;
import com.lwm.jiekou.MyPredicate;

/**
 * @author liweimin
 */
public class FilterByAge implements MyPredicate<Employee> {
    @Override
    public boolean test(Employee employee) {
        if(employee.getAge()>= 35){
            return true;
        }
        else {
            return false;
        }
    }
}
